<?php
require_once('backend.php');

if(isset($_SESSION['user_id'])){
    $cur_user = new user();
    $cur_user->logout();
    session_destroy();
}
Header("Location: /");
?>
